import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Rock
 * @create 2020-08-28 13:53
 */
public class PrintCrrunTime {
    public static void main(String[] args) {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String dateStr = sdf.format(date);
        System.out.println(dateStr);
    }
}
